package org.example.repository;

import org.example.model.BaseModel;

import java.util.List;

public interface BaseRepository<T extends BaseModel> {

    List<T> findAll();

    T findById(Long id);

    boolean save(T entity);

    void update(T entity);

    void deleteById(Long id);
}
